package com.ddxz.spark.read.struct

import com.ddxz.spark.read.constant.CommonConstData._

object SparkEntity {
  case class IpFacilityEntity(ip: String, facilityId: String, deptId: String) {
    override def toString: String = ip + hiveSplit + facilityId + hiveSplit + deptId;
  }

  case class DomainFacilityEntity(domain: String, facilityId: String, deptId: String) {
    override def toString: String = domain + hiveSplit + facilityId + hiveSplit + deptId;
  }

  case class EventDataEntity(srcIp: String, tarIp: String, data: String, remark: String) {
    override def toString: String = Array(srcIp, tarIp, data, remark).mkString(hiveSplit)
  }

  case class PostEventDataEntity(flt: String, data: String, remark: String) {
    override def toString: String = Array(flt, data, remark).mkString(hiveSplit)
  }
}
